//
//  MYGCloudDiskManagerController.swift
//  MYDoctor
//
//  Created by Denny on 2024/4/3.
//

import UIKit
//上传+下载根界面
class MYGCloudDiskManagerController: UIViewController {
    lazy var tableView: UITableView = {
        let control = UITableView.init(frame: .zero, style: .grouped)
        control.delegate = self
        control.dataSource = self
        control.rowHeight = UITableView.automaticDimension
        control.estimatedRowHeight = 150
        control.backgroundColor = .clear
        control.ww_foldable = true
        control.register(UINib.init(nibName: "MYGCloudUploadDownloadHeaderCell", bundle: nil), forCellReuseIdentifier: "MYGCloudUploadDownloadHeaderCell")
        control.register(UINib.init(nibName: "MYGCloudUploadDownloadHeaderView", bundle: nil), forHeaderFooterViewReuseIdentifier: "MYGCloudUploadDownloadHeaderView")
        return control
    }()
    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(tableView)
        tableView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        // Do any additional setup after loading the view.
    }

}


extension MYGCloudDiskManagerController:UITableViewDelegate,UITableViewDataSource {
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "MYGCloudUploadDownloadHeaderCell", for: indexPath)
//        cell.backgroundColor = .red
        return cell
    }
    
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 10
    }
}
